﻿<?php
	session_start();
	include_once("../DB/Connect.php");
	include_once("../PHP/Function.php");
	
	$_SESSION["name"] = "TOM";
	$_SESSION["right"] = "1";
?>

<?php
	if( empty( $_SESSION["name"]) )
	{
		echo "<script> alert('请登录');parent.location = '../login/login.htm' ;</script>";
	}
	else { ?>
		<table cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td width="180">
					<div class = "leftbox">
						<center>
							<h4 class="h4">分类操作</h4>
							<ul>
								<li><a href="manage.php?show=个人信息">&nbsp;&nbsp;个人信息</a></li>
								<li><a href="manage.php?show=查看商品">&nbsp;&nbsp;查看商品</a></li>
							</ul>
							<p>&nbsp;</p>
							<?php if( $_SESSION["right"]==1 ) { ?>
							<ul>
								<li><a href="manage.php?show=数据库管理">&nbsp;&nbsp;数据库管理</a></li>
								<li><a href="manage.php?show=修改用户信息">&nbsp;&nbsp;修改用户信息</a></li>
							</ul>
							<?php } ?>
						</center>
					</div>
				</td>
				<td width="784">
					<top>
					<div class="rightbox">
						<div class="position">当前位置>>
						<?php
							if(empty($_GET["show"])) echo "首页";
							else echo $_GET["show"];
						?></div>
						<div class="include">
						<?php
							$show = $_GET["show"];
						?></div>
					</div>
					</top>
				</td>
			</tr>
		</table>
	<?php
	}
	?>